package com.example.demo.dao;

import com.example.demo.entity.Account;

import java.util.List;
import java.util.Map;

public interface AccountInterface {
    //查询时间内的记账总条数
    String select1(int years, int months, int i, int mainIds);
    //查询时间内的记账总钱数
    String select2(int years, int months, int i, int mainIds);
    //查询时间内的记账详情（记账名字和金额）
    List<Map<String, Object>> select3(int years, int months, int i, int mainIds);
    //记账支出和收入
    int OutAdd(Account account);
    //折线图
    List<Map<String, Object>> select4(int years, int months,int i, int mainIds);

    List<Map<String, Object>> selectDay(int years, int months, int days, int mainIds);

    int Delete(int id);

    List<Map<String, Object>> selectYear(int years, int i, int mainIds);

    List<Map<String, Object>> selectAll(int years, int months, int mainIds);

    float SelectMaxDay(int years, int months,int i, int mainIds);

    float SelectAverageDay(int years, int months,int i, int mainIds);

    int UpdateMoney(int id, float money);
}
